﻿<%@ Page Title="明细统计(低值)" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" 
    AutoEventWireup="true" CodeBehind="GoodsOrderDetail_DZ.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.NewReport.GoodsOrderDetail_DZ" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <%--<li><a href="GoodsOrderDetail.aspx">明细统计(高值)</a></li>--%>
            <li class="active"><a href="#">明细统计(低值)</a></li>
        </ul>
    </div>
    <%--条件查询--%>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                流水号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsID" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                提交时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" Width="105px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})"></asp:TextBox>-<asp:TextBox
                                    ID="txtTimeTo" runat="server" Width="106px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_SC" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                配送企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOrderName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td align="center">
                    <asp:Button ID="Button1" runat="server" Text="查  询" CssClass="btn" OnClick="Button1_Click" /><br />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:GridView ID="gvwGoodsTotal" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
            AllowSorting="True" EmptyDataText="暂无符合条件的数据！">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%>
                    </ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="GoodsID" HeaderText="流水号" />
                <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
                <asp:BoundField DataField="Outlookc" HeaderText="规格" Visible="false" />
                <asp:TemplateField HeaderText="规格">
                <ItemTemplate>
                    <asp:Label ID="aa" runat="server" ToolTip='<%# Eval("Outlookc")%>'><%# HZ.Supervise.Web.Function.SubStr(Eval("Outlookc"))%></asp:Label>
                </ItemTemplate>
                <HeaderStyle Width="130px" />
            </asp:TemplateField>
                <asp:BoundField DataField="Unit" HeaderText="单位" />
                <asp:BoundField DataField="AreaName" HeaderText="地区名称" />
                <asp:BoundField DataField="companyName_TB" HeaderText="生产企业" />
                <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
                <asp:BoundField DataField="HospitalName" HeaderText="医院名称" />
                <asp:BoundField DataField="OrderName" HeaderText="采购单名称" />
                <asp:BoundField DataField="Price" HeaderText="采购价格" />
                <asp:BoundField DataField="PurchaseCount" HeaderText="采购数量" />
                <asp:BoundField DataField="DistributeCount" HeaderText="配送数量" />
                <asp:BoundField DataField="WarehouseCount" HeaderText="入库数量" />
                <asp:BoundField DataField="PurchaseAmount" HeaderText="采购金额" />
                <asp:BoundField DataField="DistributeAmount" HeaderText="配送金额" />
                <asp:BoundField DataField="WarehouseAmount" HeaderText="入库金额" />
                <asp:BoundField DataField="SubmiTime" HeaderText="提交时间" />
            </Columns>
        </asp:GridView>
        <div class="page">
            <span style="width: 30%; float: left; text-align: left">
                <hz:HzButton ID="btnExcel1" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel1_Click" />
            </span><span style="width: 70%; text-align: right; float: right">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                    AlwaysShow="True">
                </webdiyer:AspNetPager>
            </span>
        </div>
        <div class="listip">
            <ul>
                <li>统计：<span><asp:Label ID="lblCount" runat="server" Text="Label"></asp:Label></span></li>
                <li>说明:<span style="color:Red;">数据量大，请筛选好条件再查询</span> </li>
            </ul>
        </div>
    </div>
</asp:Content>
